import numpy as np
import matplotlib.pyplot as plt
A=[[],[],[],[]]
a = [0,0.03,0.06,0.09]
for i in range(4):
    file='seg_skip_'+str(a[i])+'.npz'
    A[i]=np.load(file)
    T=A[i]['arr_2']
    V=A[i]['arr_3']
    x=list(range(len(T)))
    plt.plot(x, T, label='trn'+str(a[i]))
    plt.plot(x, V, label='val'+str(a[i]), linestyle='-.')
plt.legend()
plt.grid()
plt.savefig('{}.png'.format('miou'))